#include <iostream>
#include <iomanip> 
using namespace std;
int main()
{
  int min=999;
  int max=0;
  int n,i=0;
  int arr[1001];
  double sum,average=0;
  cin>>n;
  for(i=1;i<=n;i++)
  {
    cin>>arr[i];
    sum+=arr[i];
    if(arr[i]>max) max=arr[i];
    if(arr[i]<min) min=arr[i];
  }
  average=sum/n;
  cout<<max<<endl;
  cout<<min<<endl;
  cout<<setprecision(2)<<fixed<<average<<endl;

  return 0;
}
